package StructuralMode.proxy.proxyStatic.railwayStation;

/**
 *  售票APP代理类
 */
public class TicketingAPP implements RailwayStation{

    private static RailwayStation railwayStation;

    @Override
    public void sell(){
        if(railwayStation == null){
            railwayStation = new RailwayStationReal();
        }
        System.out.println("售票前操作");
        railwayStation.sell();
        System.out.println("售票后操作");
    }
}
